﻿using Sidvall.Security;
using System.Security.Principal;
using System.Threading.Tasks;

namespace Sidvall.LogManager.Web.Security
{
    public class UserValidator : IIdentityValidator
    {
        #region Public Members

        #region ValidateAsync

        public Task<IdentityValidationResult> ValidateAsync(IIdentity identity)
        {
            var item = new IdentityValidationResult()
            {
                IdentityStatus = IdentityStatus.Valid,
                Claims = new ClaimCollection(),
                ObjectParameters = new Sidvall.Data.ObjectParameterCollection(),
            };
            return Task.FromResult(item);
        }

        #endregion

        #endregion
        #region Constructors

        public UserValidator()
        {
        }

        #endregion
    }
}
